﻿<UserControl x:Class="CARE.PatientDetails"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
   xmlns:charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"             
   xmlns:datavis="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" mc:Ignorable="d"
             VerticalAlignment="Top" HorizontalAlignment="Right">

	<Grid x:Name="MainGrid" Height="58" Width="300" HorizontalAlignment="Right" VerticalAlignment="Top">
		<Rectangle Opacity="0.7" Stroke="#127D7D7D" RadiusX="13" RadiusY="13" StrokeThickness="8" StrokeMiterLimit="2" StrokeEndLineCap="Flat" StrokeStartLineCap="Flat" StrokeLineJoin="Miter"   Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="0" Margin="0,2,4,4" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" />
		<Rectangle Opacity="0.7" Stroke="#267D7D7D" RadiusX="13" RadiusY="13" StrokeThickness="7" StrokeMiterLimit="2" StrokeEndLineCap="Flat" StrokeStartLineCap="Flat" StrokeLineJoin="Miter"   Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="0" Margin="1,3,5,5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" />
		<Rectangle Opacity="0.7" Stroke="#307D7D7D" RadiusX="13" RadiusY="13" StrokeThickness="6" StrokeMiterLimit="2" StrokeEndLineCap="Flat" StrokeStartLineCap="Flat" StrokeLineJoin="Miter"   Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="0" Margin="2,4,6,6" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" />
		<Rectangle Opacity="0.7" Stroke="#447D7D7D" RadiusX="13" RadiusY="13" StrokeThickness="5" StrokeMiterLimit="2" StrokeEndLineCap="Flat" StrokeStartLineCap="Flat" StrokeLineJoin="Miter"   Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="0" Margin="3,5,7,7" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" />
		<Rectangle Opacity="0.7" Stroke="#587D7D7D" RadiusX="13" RadiusY="13" StrokeThickness="4" StrokeMiterLimit="2" StrokeEndLineCap="Flat" StrokeStartLineCap="Flat" StrokeLineJoin="Miter"   Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="0" Margin="4,6,8,8" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" />
		<Rectangle Opacity="0.7" Stroke="#727D7D7D" RadiusX="13" RadiusY="13" StrokeThickness="3" StrokeMiterLimit="2" StrokeEndLineCap="Flat" StrokeStartLineCap="Flat" StrokeLineJoin="Miter"   Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="0" Margin="5,7,9,9" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" />
		<Rectangle Opacity="0.7" Stroke="#867D7D7D" RadiusX="13" RadiusY="13" StrokeThickness="2" StrokeMiterLimit="2" StrokeEndLineCap="Flat" StrokeStartLineCap="Flat" StrokeLineJoin="Miter"   Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="0" Margin="6,8,10,10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" />

		<Rectangle Opacity="0.7" Stroke="#7D7D7D" RadiusX="13" RadiusY="13" StrokeThickness="1" StrokeMiterLimit="2" StrokeEndLineCap="Flat" StrokeStartLineCap="Flat" StrokeLineJoin="Miter"   Grid.Column="0" Grid.ColumnSpan="1" Grid.Row="0" Margin="7,9,11,11" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" >
			<Rectangle.Fill>
				<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
					<GradientStop Color="#FF000000" Offset="0"/>
					<GradientStop Color="#FFF00F00" Offset="3"/>
				</LinearGradientBrush>
			</Rectangle.Fill>
		</Rectangle>
		<Grid Margin="10,10,14,14" >
			<Controls:Expander IsExpanded="False" x:Name="exp1" Margin="5" Collapsed="exp1_Collapsed" Expanded="exp1_Expanded" >
				<Controls:Expander.Header>
					<TextBlock Text="Patient Details" Foreground="Gray" />
				</Controls:Expander.Header>
				<Grid x:Name="ContentGrid" ShowGridLines="False">
					<Grid.RowDefinitions>
						<RowDefinition Height="90"/>
						<RowDefinition Height="*"/>
					</Grid.RowDefinitions>

					<Grid.ColumnDefinitions>
						<ColumnDefinition x:Name="LeftPanelSize" Width="90"/>
						<ColumnDefinition Width="*"/>

					</Grid.ColumnDefinitions>
					<Rectangle Width="90" Height="90" Stroke="White" StrokeThickness="2" RadiusX="13" RadiusY="13" Grid.Column="0" Grid.Row="0">
						<Rectangle.Fill>
							<ImageBrush>
								<ImageBrush.ImageSource>
									<BitmapImage x:Name="PatientPhoto" UriSource="http://nosoifighters.studentlive.pl/images/nophoto.jpg" />
								</ImageBrush.ImageSource>
							</ImageBrush>
						</Rectangle.Fill>
					</Rectangle>
					<StackPanel Margin="10,10,0,0"  Grid.Column="1" Grid.Row="0">
						<TextBlock x:Name="PatientName" Height="22" Foreground="Gray" />
						<StackPanel Orientation="Horizontal">
							<TextBlock Height="22" Text="Age: " Foreground="Gray" />
							<TextBlock x:Name="PatientAge" Height="22" Foreground="Gray" />
						</StackPanel>
						<TextBlock x:Name="Patientlocation" Height="22" Foreground="Gray" />
					</StackPanel>

					<TextBlock Grid.Row="1" VerticalAlignment="Center" Foreground="Gray" HorizontalAlignment="Right" Grid.Column="0" Text="Health Monitor" RenderTransformOrigin="0.5,0">
                        <TextBlock.RenderTransform>                
                            <RotateTransform Angle="-90"/>
                        </TextBlock.RenderTransform>
					</TextBlock>

					<charting:Chart x:Name="chartLine" Grid.Row="1" Grid.Column="1"
                                    Title="Off-normal Monitor"
                                    Height="150" Width="170"
                                    Margin="0,0" Foreground="Gray">

						<charting:Chart.TitleStyle>
							<Style TargetType="datavis:Title">
								<Setter Property="Width" Value="0"/>
								<Setter Property="Height" Value="0"/>
							</Style>
						</charting:Chart.TitleStyle>

						<charting:Chart.LegendStyle>
							<Style TargetType="datavis:Legend">
								<Setter Property="Width" Value="0"/>
								<Setter Property="Height" Value="0"/>
							</Style>
						</charting:Chart.LegendStyle>



						<charting:Chart.Series>
							<charting:LineSeries
            DependentValueBinding  ="{Binding Score}"
                                    IndependentValueBinding ="{Binding Name}"   />
						</charting:Chart.Series>

					</charting:Chart>


				</Grid>
			</Controls:Expander>
		</Grid>

	</Grid>

</UserControl>
